<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="MvcContrib.FluentHtml.ModelViewPage<IEnumerable<Universum.Model.Domain.Article>>" %>

<%--Inherits="System.Web.Mvc.ViewPage<IEnumerable<SimpleArticleManagement.Domain.Article>>" --%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Index</h2>
	<div class="span-24">
		<% foreach (var item in Model)
	 { %>
		<div class="span-24">
			<div class="span-20">
				<h2>
					<%= Html.Encode(item.Title) %></h2>
			</div>
			<% Html.RenderPartial("EditControls", item); %>
			<div class="span-24">
				<%=item.Text %>
			</div>
		</div>
		<% } %>
	</div>
	</table>
	<p>
		<%= Html.UserActionLink<ArticleController>( callOn=> callOn.Create(),"Create New")%>
	</p>
</asp:Content>
